package com.albaba.designpattern.observer.text_003;

import com.albaba.designpattern.observer.text_002.LotteryResult;

/**
 * @Description: MQ消息发送事件监听
 * @Author zx
 * @Date 2025/2/24 15:57
 * @Version 1.0
 */
public class MQEventListener implements EventListener {
    @Override
    public void doEvent(LotteryResult result) {
        System.out.println("记录用户摇号结果(MQ),用户ID:" + result.getuId()
                + ",摇号结果:" + result.getMsg());
    }
}
